// import request from '@/utils/service'
import request from '@/utils/request'
export function saveFromInfo(param) {
  return request({
    url: '/From/saveData',
    method: 'post',
    data: param
  })
}
export function getFromInfo(fromId) {
  return request({
    url: '/From/getFromInfo?fromId=' + fromId,
    method: 'post',
    data: {}
  })
}
export function getFromDesignJson(fromId) {
  return request({
    url: '/From/getFromDesignJson?fromId=' + fromId,
    method: 'post',
    data: {}
  })
}
export function getFromTempContext(fromId) {
  return request({
    url: '/From/getFromTempContext?fromId=' + fromId,
    method: 'post',
    data: {}
  })
}
export function queryPageList(param) {
  return request({
    url: '/From/queryPageList',
    method: 'post',
    data: param
  })
}

export function saveConfigShowCelNames(param) {
  return request({
    url: '/From/saveConfigShowCelNames',
    method: 'post',
    data: param
  })
}
export function saveConfigQueryJson(param) {
  return request({
    url: '/From/saveConfigQueryJson',
    method: 'post',
    data: param
  })
}

export function getConfigQueryJson(param) {
  return request({
    url: '/From/getConfigQueryJson',
    method: 'post',
    data: param
  })
}
export function queryAll(param) {
  return request({
    url: '/From/queryall',
    method: 'post',
    data: param
  })
}
// 下载数据导入模板
export function importTemplate(apicode,param) {
  return request({
    url: '/From/importTemplate/'+apicode,
    method: 'post',
    data: param
  })
}
export function auditOperator(param) {
  return request({
    url: '/From/auditOperator',
    method: 'post',
    data: param
  })
}
export function extractAuditData(param) {
  return request({
    url: '/From/extractAuditData',
    method: 'post',
    data: param
  })
}
export function lockRecord(param) {
  return request({
    url: '/From/lockRecord',
    method: 'post',
    data: param
  })
}

export function unExtractSelfAuditData(param) {
  return request({
    url: '/From/unExtractSelfAuditData',
    method: 'post',
    data: param
  })
}
export function getAuditprocessByFid(param) {
  return request({
    url: '/From/getAuditprocessByFid',
    method: 'post',
    data: param
  })
}
export function getAuditReport(param) {
  return request({
    url: '/From/getAuditReport',
    method: 'post',
    data: param
  })
}

